﻿<UserControl xmlns:Controls="clr-namespace:Flare.Controls"  x:Class="Flare.Pages.Hards.Move"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:base="clr-namespace:Flare.DB"
      mc:Ignorable="d"
      d:DesignHeight="600" d:DesignWidth="1200">
    <UserControl.Resources>
        <ObjectDataProvider x:Key="general_departmentsDataSet" ObjectType="{x:Type base:general_departments}" MethodName="Index" IsAsynchronous="False" />

        <ObjectDataProvider x:Key="general_roomsDataSet" ObjectType="{x:Type base:general_rooms}" MethodName="Index" IsAsynchronous="False">
            <ObjectDataProvider.MethodParameters>
                <x:Null/>
            </ObjectDataProvider.MethodParameters>
        </ObjectDataProvider>
    </UserControl.Resources>

    <DockPanel LastChildFill="False" VerticalAlignment="Top">
        
        <Controls:FlameMenu x:Name="Department" Caption="Отдел" SelectedValuePath="id_department" DisplayMemberPath="department" DockPanel.Dock="Top"
                      ItemsSource="{Binding Source={StaticResource general_departmentsDataSet}}" SelectionChanged="Department_SelectionChanged"/>

        <Controls:FlameMenu x:Name="Room" Caption="Кабинет" SelectedValuePath="id_room" DisplayMemberPath="room" DockPanel.Dock="Top"
                      ItemsSource="{Binding Source={StaticResource general_roomsDataSet}}"/>
        
        <Controls:FlameTbox x:Name="description" Header="Примечание" DockPanel.Dock="Top" Width="500" Margin="0,8,0,0"/>

        <Controls:FlameButtonInfo x:Name="ButtonSave" Content="Переместить" DockPanel.Dock="Top" Margin="0,20"
                                    HorizontalAlignment="Left" Click="ButtonSave_Click"/>
    </DockPanel>   
</UserControl>
